package de.sendorian.app.forumArchive.repository;

import org.springframework.stereotype.Repository;

import de.sendorian.app.forumArchive.domain.Topic;
import de.sendorian.db.RepositoryBase;


@Repository
public class TopicRepository extends RepositoryBase<Topic> {

    public TopicRepository() {
        super(Topic.class);
    }


    public Topic findByName(String name) {
        return findByUniqueAttribute("name", name);
    }
}
